package com.wanlong.udp;

import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;

import com.zhy.autolayout.config.AutoLayoutConifg;

/**
 *
 * @author lingchen
 * @date 2019/3/29
 * mail:lingchen52@foxmail.com
 */
public class App extends Application {

    private static App app;
    public static String imageUrl = "http://192.168.3.93/singer/";

    public static App getApp() {
        return app;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        initOkGo();
        initLogger();
        AutoLayoutConifg.getInstance().useDeviceSize();
    }

    public SharedPreferences sharedPreferences;

    public SharedPreferences getSP() {
        if (sharedPreferences == null) {
            sharedPreferences = getSharedPreferences("udp", Context.MODE_PRIVATE);
        }
        return sharedPreferences;
    }

    public void initLogger() {

    }

    public void initOkGo() {

    }

}
